﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/Site.Master" AutoEventWireup="true"
    CodeBehind="Contact.aspx.cs" Inherits="SharingCenter.Web.Misc.Contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    联系我们
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div class="ctn-box-w">
        <div style="width: 600px;" class="ctn-box">
            <h1 class="w5">
                联系我们</h1>
                <myuc:MessageBox runat="server" MessageType="Error" ID="msgError" Visible="false" />
            <table class="tb-full">
                <tr>
                    <td style="width: 60px;">
                        联系类型：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCategory" runat="server">
                            <asp:ListItem Text="网站错误" />
                            <asp:ListItem Text="一般问询" />
                            <asp:ListItem Text="投诉建议" />
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:TextBox MaxLength="1000" ID="txtContent" runat="server" TextMode="MultiLine" Rows="5" Width="99%"></asp:TextBox>
                        <asp:RequiredFieldValidator ValidationGroup="mail" ID="RequiredFieldValidator1" SetFocusOnError="true"
                            runat="server" ErrorMessage="不填写联系内容吗？" Display="None" ControlToValidate="txtContent"></asp:RequiredFieldValidator>
                        <cc:CustomValidatorCallOut runat="server" TargetControlID="RequiredFieldValidator1"
                            ID="CustomValidatorCallOut1">
                        </cc:CustomValidatorCallOut>
                    </td>
                </tr>
                <tr>
                    <td>
                        E-mail：
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Width="99%" MaxLength="100"></asp:TextBox>
                        <asp:RequiredFieldValidator ValidationGroup="mail" ID="RequiredFieldValidator2" runat="server"
                            ErrorMessage="E-mail不能为空。" ControlToValidate="txtEmail" Display="None"></asp:RequiredFieldValidator>
                        <cc:CustomValidatorCallOut ID="CustomValidatorCallOut2" TargetControlID="RequiredFieldValidator2"
                            runat="server">
                        </cc:CustomValidatorCallOut>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="E-mail格式不正确。"
                            ValidationGroup="mail" ControlToValidate="txtEmail" Display="None" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        <cc:CustomValidatorCallOut ID="CustomValidatorCallOut3" TargetControlID="RegularExpressionValidator1"
                            runat="server">
                        </cc:CustomValidatorCallOut>
                    </td>
                </tr>
                 <tr>
                    <td>
                        联系人：
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" Width="99%" MaxLength="20"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        联系方式：
                    </td>
                    <td>
                        <asp:TextBox ID="txtContact" runat="server" Width="99%" MaxLength="100"></asp:TextBox>
                        <ajaxctrltool:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
                            TargetControlID="txtContact" WatermarkCssClass="litetext" WatermarkText="手机、办公电话等...">
                        </ajaxctrltool:TextBoxWatermarkExtender>
                    </td>
                </tr>
            </table>
            <div class="actionarea textfar">
                <asp:LinkButton ID="lnkSend" ValidationGroup="mail" runat="server" CssClass="submitbutton">发送</asp:LinkButton>
            </div>
        </div>
    </div>
</asp:Content>
